from nn_model import test_rssrai as t
from django.shortcuts import render
from django.http import JsonResponse
import sys
sys.path.append('..')
# Create your views here.

template_root = "dist/my_test/"


def app(request):
    t.interface_img_dection()
    a = 10
    return render(request, template_root+"backend/index.html", {"a": a})


def show(request):
    data = {}
    data['status'] = 1
    data['list'] = {"name": "yaoming", "year": 18, "hobit": "basketball"}
    data['drink'] = "apple"
    
    return JsonResponse(data)


